<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<title>队列</title>
</head>
<body>

	<script src="../../src/PriorityQueue.js"></script>
	<script>
		var queue = new PriorityQueue(10);
		queue.enque(4);
		queue.enque(7);
		queue.enque(8);
		queue.enque(2);
		queue.enque(3);
		queue.enque(9);
		queue.enque(1);
		queue.enque(10);
		queue.enque(5);
		queue.enque(6);

		console.log(queue.deque());
		console.log(queue.deque());
		console.log(queue.deque());

		queue.enque(10);
		queue.enque(11);
		queue.enque(8);

		console.log(queue);
	</script>
</body>
</html>